<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/10/18 13:54
 * Desc: 私人定制
 */
abstract class Contract_Api_Customize
{

    use Trait_Api_Image;
    use Trait_Api_Content;
    use Trait_Api_Response;

    /**
     * 计划
     * @param $params
     * @return array
     */
    abstract function plan($params): array;

    /**
     * 计划详情
     * @param $id
     * @return array
     * @throws Exception
     */
    abstract function plan_show($id): array;

    /**
     * 定制扩展字段
     * @return array
     */
    abstract function extend_fields(): array;

    /**
     * 添加订单
     * @param $params
     * @return array
     * @throws Exception
     */
    abstract function add_order($params): array;

    /**
     * 定制详情
     * @param $product_id
     * @return array
     */
    abstract function show($product_id): array;

    /**
     * 完善定制订单信息
     * @param $params
     * @return array
     * @throws Exception
     */
    abstract function improve_order_info($params): array;
}